<?php

namespace Biz\model\wiki;


class WikiClean extends \Doraemon\pockets\datebase\BaseDbModel
{
    const _CONFIG_FILE_ = 'db_store';

    const _CONFIG_SELECT_ = 'db_store';

    const _DATABASE_ = 'store';

    const _TABLE_NAME = 'wikiclean';

    public static function insertData($data)
    {
        if(self::get('id',['res_id'=>$data['res_id']])){
            return true;
        }
        $ret = self::insert($data);
        if ($ret->errorCode() !== '00000') {
            return false;
        }
        return self::id();
    }

}